<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>公共片段</title>
</head>
<body>
<!--企业用户（未认证）显示的顶部导航栏-->
<div id="header" th:fragment="company_top_nav">
    <div class="wrapper">
        <a class="logo" href="javascript:void(0)">
            <img width="229" height="43" alt="伯乐网" src="../../style/images/logo.png">
        </a>
        <ul id="navheader" class="reset">
            <li class="current">
                <a href="#">我的公司</a>
            </li>
            <li class="PleaseLogin">
                <a rel="nofollow" href="javascript:void(0)" style="margin-left: 50px;">简历管理</a>
            </li>
            <li class="PleaseLogin">
                <a rel="nofollow" href="javascript:void(0)" style="margin-left: 50px">发布职位</a>
            </li>
        </ul>

        <!--未登陆显示登陆注册-->
        <ul class="loginTop" th:if="${session.user}==null">
            <li>
                <a href="/loginPage" rel="nofollow">登录</a>
            </li>
            <li>|</li>
            <li>
                <a href="/registerPage" rel="nofollow">注册</a>
            </li>
        </ul>
        <!--已登陆显示下列表-->
        <dl class="collapsible_menu" th:if="${session.user}!=null">
            <dt>
                <span th:text="${session.user.phone}">姓名</span>
                <span class="red dn" id="noticeDot-1"></span>
                <i></i>
            </dt>
            <dd class="PleaseLogin">
                <a href="javascript:void(0)">我发布的职位</a>
            </dd>
            <dd class="PleaseLogin">
                <a href="'javascript:void(0)">我收到的简历</a>
            </dd>
            <dd class="PleaseLogin">
                <a href="javascript:void(0)">我的公司主页</a>
            </dd>
            <dd class="PleaseLogin">
                <a href="javascript:void(0)">帐号设置</a>
            </dd>
            <dd class="logout">
                <a rel="nofollow" href="/logout">退出</a>
            </dd>
        </dl>
        <script>
            //未进行公司认证之前，点击其他按钮提示进行认证。
            $(".PleaseLogin").click(function () {
                layer.alert("请先完成公司认证！",{icon:2});
                return false;
            });
        </script>
    </div>
</div>

<!--企业用户（已经认证）显示的顶部导航栏 选中我的公司-->
<div id="header" th:fragment="company_top_nav_ok">
    <div class="wrapper">
        <!--隐藏域存放当前登陆人ID-->
        <input type="hidden" id="userId" th:value="${session.user.id}">
        <a class="logo tomyhome" href="javascript:void(0)">
            <img width="229" height="43" alt="伯乐网" src="../../style/images/logo.png">
        </a>
        <ul id="navheader" class="reset">
            <li class="current">
                <a class="tomyhome" href="javascript:void(0)">我的公司</a>
            </li>
            <li>
                <a rel="nofollow" th:href="'/manager?userId='+${session.user.id}" style="margin-left: 50px;">简历管理</a>
            </li>
            <li>
                <a rel="nofollow" href="/create" style="margin-left: 50px">发布职位</a>
            </li>
        </ul>

        <!--未登陆显示登陆注册-->
        <ul class="loginTop" th:if="${session.user}==null">
            <li>
                <a href="/loginPage" rel="nofollow">登录</a>
            </li>
            <li>|</li>
            <li>
                <a href="/registerPage" rel="nofollow">注册</a>
            </li>
        </ul>
        <!--已登陆显示下列表-->
        <dl class="collapsible_menu" th:if="${session.user}!=null">
            <!--隐藏域存放当前登陆人ID-->
            <input type="hidden" id="userId" th:value="${session.user.id}">
            <dt>
                <span th:text="${session.user.phone}">姓名</span>
                <span class="red dn" id="noticeDot-1"></span>
                <i></i>
            </dt>
            <dd id="effective">
                <a href="javascript:void(0)">我发布的职位</a>
            </dd>
            <dd>
                <a th:href="'/manager?userId='+${session.user.id}">我收到的简历</a>
            </dd>
            <dd class="btm tomyhome">
                <a href="javascript:void(0)">我的公司主页</a>
            </dd>
            <dd>
                <a href="/accountSetting">帐号设置</a>
            </dd>
            <dd class="logout">
                <a rel="nofollow" href="/logout">退出</a>
            </dd>
            <script>
                //点击 "我发布的职位"
                $("#effective").click(function () {
                    //获取公司ID
                    var companyId = $("#companyId").val();
                    //跳转到有效职位页面
                    location.href = "/effective?companyId=" + companyId;
                    return false;
                });
                //点击 "我的公司主页"
                $(".tomyhome").click(function () {
                    //获取用户id
                    var userId = $("#userId").val();
                    location.href = "/myhome?" + "userId=" + userId;
                });
            </script>
        </dl>
    </div>
</div>

<!--企业用户 顶部导航 选中发布职位-->
<div id="header" th:fragment="top_nav_publishJob">
    <div class="wrapper">
        <!--隐藏域存放当前登陆人ID-->
        <input type="hidden" id="userId" th:value="${session.user.id}">
        <a class="logo tomyhome" href="javascript:void(0)">
            <img width="229" height="43" alt="伯乐网" src="../../style/images/logo.png">
        </a>
        <ul id="navheader" class="reset">
            <li>
                <a class="tomyhome" href="javascript:void(0)">我的公司</a>
            </li>
            <li>
                <a rel="nofollow" th:href="'/manager?userId='+${session.user.id}" style="margin-left: 50px;">简历管理</a>
            </li>
            <li class="current">
                <a rel="nofollow" href="/create" style="margin-left: 50px">发布职位</a>
            </li>
        </ul>

        <!--未登陆显示登陆注册-->
        <ul class="loginTop" th:if="${session.user}==null">
            <li>
                <a href="/loginPage" rel="nofollow">登录</a>
            </li>
            <li>|</li>
            <li>
                <a href="/registerPage" rel="nofollow">注册</a>
            </li>
        </ul>
        <!--已登陆显示下列表-->
        <dl class="collapsible_menu" th:if="${session.user}!=null">
            <dt>
                <span th:text="${session.user.phone}">姓名</span>
                <span class="red dn" id="noticeDot-1"></span>
                <i></i>
            </dt>
            <dd id="effective">
                <a href="javascript:void(0)">我发布的职位</a>
            </dd>
            <dd>
                <a th:href="'/manager?userId='+${session.user.id}">我收到的简历</a>
            </dd>
            <dd class="btm tomyhome">
                <a href="javascript:void(0)">我的公司主页</a>
            </dd>
            <dd>
                <a href="/accountSetting">帐号设置</a>
            </dd>
            <dd class="logout">
                <a rel="nofollow" href="/logout">退出</a>
            </dd>
            <script>
                //点击 "我发布的职位"
                $("#effective").click(function () {
                    //获取公司ID
                    var companyId = $("#companyId").val();
                    //跳转到有效职位页面
                    location.href = "/effective?companyId=" + companyId;
                    return false;
                });
                //点击 "我的公司主页"
                $(".tomyhome").click(function () {
                    //获取用户id
                    var userId = $("#userId").val();
                    location.href = "/myhome?" + "userId=" + userId;
                });
            </script>
        </dl>
    </div>
</div>

<!--企业用户 顶部导航 选中简历管理-->
<div id="header" th:fragment="top_nav_resumeManager">
    <div class="wrapper">
        <!--隐藏域存放当前登陆人ID-->
        <input type="hidden" id="userId" th:value="${session.user.id}">
        <a class="logo tomyhome" href="javascript:void(0)">
            <img width="229" height="43" alt="伯乐网" src="../../style/images/logo.png">
        </a>
        <ul id="navheader" class="reset">
            <li>
                <a class="tomyhome" href="javascript:void(0)">我的公司</a>
            </li>
            <li class="current">
                <a rel="nofollow" th:href="'/manager?userId='+${session.user.id}" style="margin-left: 50px;">简历管理</a>
            </li>
            <li >
                <a rel="nofollow" href="/create" style="margin-left: 50px">发布职位</a>
            </li>
        </ul>

        <!--未登陆显示登陆注册-->
        <ul class="loginTop" th:if="${session.user}==null">
            <li>
                <a href="/loginPage" rel="nofollow">登录</a>
            </li>
            <li>|</li>
            <li>
                <a href="/registerPage" rel="nofollow">注册</a>
            </li>
        </ul>
        <!--已登陆显示下列表-->
        <dl class="collapsible_menu" th:if="${session.user}!=null">
            <dt>
                <span th:text="${session.user.phone}">姓名</span>
                <span class="red dn" id="noticeDot-1"></span>
                <i></i>
            </dt>
            <dd id="effective">
                <a href="javascript:void(0)">我发布的职位</a>
            </dd>
            <dd>
                <a th:href="'/manager?userId='+${session.user.id}" >我收到的简历</a>
            </dd>
            <dd class="btm tomyhome">
                <a href="javascript:void(0)">我的公司主页</a>
            </dd>
            <dd>
                <a href="/accountSetting">帐号设置</a>
            </dd>
            <dd class="logout">
                <a rel="nofollow" href="/logout">退出</a>
            </dd>
            <script>
                //点击 "我发布的职位"
                $("#effective").click(function () {
                    //获取公司ID
                    var companyId = $("#companyId").val();
                    //跳转到有效职位页面
                    location.href = "/effective?companyId=" + companyId;
                    return false;
                });
                //点击 "我的公司主页"
                $(".tomyhome").click(function () {
                    //获取用户id
                    var userId = $("#userId").val();
                    location.href = "/myhome?" + "userId=" + userId;
                });
            </script>
        </dl>
    </div>
</div>


<!--普通用户显示的顶部导航栏-->
<div id="header" th:fragment="common_top_nav">
    <div class="wrapper">
        <a href="/index" class="logo">
            <img src="style/images/logo.png" width="229" height="43" alt="伯乐网-专注互联网招聘"/>
        </a>
        <ul class="reset" id="navheader">
            <li class="current">
                <a href="/toIndex">首页</a>
            </li>
            <li>
                <a href="companylist.html" style="margin-left: 50px">搜索公司</a>
            </li>
            <!--<li>-->
            <!--<a href="h/toForum.html" target="_blank">论坛</a>-->
            <!--</li>-->
            <li>
                <a href="jianli.html" rel="nofollow" style="margin-left: 50px">我的简历</a>
            </li>
            <!--<li>-->
            <!--<a href="create.html" rel="nofollow">发布职位</a>-->
            <!--</li>-->
        </ul>
        <!--未登陆显示登陆注册-->
        <ul class="loginTop" th:if="${session.user}==null">
            <li>
                <a href="/loginPage" rel="nofollow">登录</a>
            </li>
            <li>|</li>
            <li>
                <a href="/registerPage" rel="nofollow">注册</a>
            </li>
        </ul>
        <!--已经登陆显示下拉列表-->
        <dl class="collapsible_menu" th:if="${session.user}!=null">
            <dt>
                <span th:text="${session.user.phone}">路人甲</span>
                <span class="red dn" id="noticeDot-0"></span>
                <i></i>
            </dt>
            <dd>
                <a rel="nofollow" href="jianli.html">我的简历</a>
            </dd>
            <dd>
                <a th:href="'/selectCollections?userId='+${session.user.id}">我收藏的职位</a>
            </dd>
            <dd>
                <a th:href="'/myToudi?userId='+${session.user.id}">我投递的职位 <span id="noticeNo" class="red dn">(0)</span></a>
            </dd>
            <dd class="btm">
                <a href="subscribe.html">我的订阅</a>
            </dd>
            <dd>
                <a href="create.html">我要招人</a>
            </dd>
            <dd>
                <a href="accountBind.html">帐号设置</a>
            </dd>
            <dd class="logout">
                <a rel="nofollow" href="/logout">退出</a>
            </dd>
        </dl>

    </div>
</div>


<!-- 页面底部 备案号-->
<div id="footer" th:fragment="footer_nav">
    <div class="wrapper">
        <div class="copyright" style="margin-left: 100px;float: left;">&copy;2019-2020 BoLe
            <a target="_blank"
               href="http://hb.beian.miit.gov.cn/state/outPortal/loginPortal.action">鄂ICP备19030901号-1</a>
        </div>
    </div>
</div>


</body>
</html>